package org.zxp.designpattern.factory.functionfactory;

/**
 * @program: effectiveJava
 * @description:
 * @author: X-Pacific zhang
 * @create: 2019-08-21 09:59
 **/
public class FunctionFactoryTest {
    public static void main(String[] args){
        ManFactory manFactory = new ManFactory();
        WomenFactory womenFactory = new WomenFactory();
        People man = manFactory.getPeople();
        People women = womenFactory.getPeople();

        man.say();
        women.say();
    }
}
